package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@ConfigurationProperties(prefix = "gulimall.thread")
@Component
public class ThreadPoolConfigProperties {
    /**
     * 核心线程数
     **/
    private Integer coreSize;
    /**
     * 最大线程数
     **/
    private Integer maxSize;
    /**
     * 最大存活时间
     **/
    private Integer keepAliveTime;

}
